package org.zfes.snowier.zbss.xzy.biz.vedio.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.core.data.ParamMap;
import org.zfes.snowier.zbss.xzy.biz.vedio.model.DeviceVedioDir;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
import org.zfes.snowier.core.data.SelectVo;
@Mapper
public interface DeviceVedioDirMapper extends BaseMapper<DeviceVedioDir>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<DeviceVedioDir> selectModelListPage(ParamMap params);
	
	
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
	
    List<SelectVo> selectDropList(@Param("status")Byte status);

    
    int batchInsert(@Param("dirList")List<DeviceVedioDir> dirList);
    
	List<DeviceVedioDir> selectByDeviceId(@Param("deviceId")Long deviceId);
    
	List<DeviceVedioDir> selectByDeviceNum(@Param("deviceNum")String  deviceNum);
	
	int deleteByDeviceNum(@Param("deviceNum")String  deviceNum);
	
	int deleteByDeviceId(@Param("deviceId")Long deviceId);
	
	
	int updateCoverPic(@Param("deviceId")Long deviceId,@Param("fileName")String fileName);
}
